﻿<%@ Page Title="" Language="C#" MasterPageFile="~/master/admin.master" AutoEventWireup="true"
    CodeFile="image.aspx.cs" Inherits="aspx_admin_image" %>

<asp:Content ID="Content1" ContentPlaceHolderID="Title" runat="Server">
    管理—首页滚动图
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="HeadContent" runat="Server">
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="MainContent" runat="Server">
    <div id="tabs">
        <div id="tab1">
            <ul id="container">
                <asp:Repeater ID="Repeater1" runat="server" DataSourceID="ods滚动图" OnItemCommand="Repeater1_ItemCommand">
                    <ItemTemplate>
                        <li>
                            <asp:Button ID="btn删除" runat="server" Text="删除这张图片" CssClass="btn" CommandName="Delete" /><br />
                            图片ID:
                            <asp:Label ID="图片IDLabel" runat="server" Text='<%# Eval("图片ID") %>' />
                            <br />
                            <asp:Image ID="Image1" ImageUrl='<%# Eval("虚目录") %>' runat="server" Width="640" Height="300" />
                            <br />
                            链接：<a runat="server" href='<%# Eval("链接") %>'><%# Eval("链接")%></a> </li>
                    </ItemTemplate>
                </asp:Repeater>
            </ul>
            <div class="holder">
            </div>
        </div>
        <div id="tab2">
            最好添加580*272的图片。图片格式为jpg,jpeg,png,gif,bmp。<br />
            <asp:FileUpload ID="fu" runat="server" />
            <br />
            链接：<asp:TextBox runat="server" ID="txt链接" CausesValidation="true" ValidationGroup="new" Text="http://" />
            <asp:RequiredFieldValidator ErrorMessage="*" ControlToValidate="txt链接" runat="server"
                ValidationGroup="new" />
            <br />
            显示文本：<asp:TextBox runat="server" ID="txt显示文本" ValidationGroup="new" />
            <asp:RequiredFieldValidator ErrorMessage="*" ControlToValidate="txt显示文本" ValidationGroup="new"
                runat="server" />
            <br />
            <asp:LinkButton ID="InsertButton" runat="server" CausesValidation="True" CommandName="Insert"
                Text="确认上传" OnClick="InsertButton_Click" CssClass="btn" ValidationGroup="new" />
            <asp:Literal ID="Literal1" runat="server"></asp:Literal>
        </div>
    </div>
    <asp:ObjectDataSource ID="ods滚动图" runat="server"
        OldValuesParameterFormatString="original_{0}" SelectMethod="GetData" TypeName="ds_名师讲堂TableAdapters.tb_滚动图片TableAdapter"></asp:ObjectDataSource>
</asp:Content>